//
//  RCBaseTableViewController.m
//  RCsinaMicroBlog
//
//  Created by Mr.Ray on 15/2/3.
//  Copyright (c) 2015年 Ray.peng. All rights reserved.
//

#import "RCBaseTableViewController.h"
#import "RCOAuthController.h"

@interface RCBaseTableViewController ()

@end

@implementation RCBaseTableViewController

- (void)loadView{
    
    RCDefaultCenterView *defaultCenter = [RCDefaultCenterView defaultCenter];
    self.view = defaultCenter;
    self.defaultCenterView = defaultCenter;
    self.defaultCenterView.delegate = self;
    
}

#pragma mark -RCBaseTableViewController的代理方法
- (void)defauletCenterView:(RCDefaultCenterView *)defaultCenterView didClickLoginBtn:(UIButton *)loginBtn{
    
    RCOAuthController *OAuth = [[RCOAuthController alloc] init];
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:OAuth];
    //弹出
    [self presentViewController:nav animated:YES completion:nil];
    
}
- (void)defauletCenterView:(RCDefaultCenterView *)defaultCenterView didClickRegisterBtn:(UIButton *)registerBtn{
    
}
@end
